package com.example.controller;

import com.example.service.UserAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userArea")
public class UserAreaController {

    @Autowired
    private UserAreaService userAreaService;

    /**
     * 更新大学书店账号地址
     */
    @PutMapping("/update/universityBookstore")
    public String updateUniversityBookstore(String poiPath,String areaPath){
        return userAreaService.updateUniversityBookstore(poiPath,areaPath);
    }
}
